package me.firstapp.module.bbs;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import me.firstapp.module.base.CommonEntity;

/**
 * 板块模型
 * 
 * @Created by keanu.
 * @Copyright (c) 2016, All Rights Reserved.
 * @website http://firstapp.me
 */
@Entity
@Table(name = "TOPIC_SECTION")
public class Section extends CommonEntity {
	private static final long serialVersionUID = -6666677725869983110L;

	// 板块名称
	@Column(name = "NAME", length = 30, nullable = false)
	private String name;

	// 板块描述
	@Column(name = "DESCRIPTION", length = 200, nullable = true)
	private String description;

	// 话题数
	@Column(name = "TOPIC_COUNTS", nullable = false, columnDefinition = "BIGINT")
	private Long topicCounts = 0L;

	// 回复数
	@Column(name = "REPLY_COUNTS", nullable = false, columnDefinition = "BIGINT")
	private Long replyCounts = 0L;

	// 排序
	@Column(name = "SORT", nullable = false, columnDefinition = "TINYINT")
	private Integer sort;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Long getTopicCounts() {
		return topicCounts;
	}

	public void setTopicCounts(Long topicCounts) {
		this.topicCounts = topicCounts;
	}

	public Long getReplyCounts() {
		return replyCounts;
	}

	public void setReplyCounts(Long replyCounts) {
		this.replyCounts = replyCounts;
	}
}
